package com.example.controller;

import com.example.service.HelloServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: springcloud
 * @description: 断路器demo控制层
 * @author: ChenZhiXiang
 * @create: 2019-06-03 15:09
 **/
@RestController
public class HelloController {

    @Autowired
    private HelloServiceImpl service;

    @GetMapping("/hystrix")
    public String hystrix(){
        return service.hystrix();
    }
}
